{{define "footer"}}




<!-- REQUIRED SCRIPTS -->

<!-- jQuery -->
<script src="/source/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="/source/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>



<!-- Golang Demo -->
<script src="/source/dist/js/adminlte.js"></script>


</html>




<script type="text/javascript">

    function loginOut(){

        $.ajax({

            url:'/login-out',
            type:'post',
            beforeSend:function () {},
            contentType:"application/json;charset=utf-8",
            data:JSON.stringify({}),
            dataType:"json",
            success:function(rs){
                if(rs.sta == 1){
                    window.location.href="/login";
                }else{
                    alert("error");
                }

            },
            error:function(){
                alert("error");
            }

        })


    }

</script>


{{end}}